import tkinter as tk
root = tk.Tk()
root.title("登录")
root.geometry("400x400+300+300")
root.resizable(False,False)

label = tk.Label(root,text="用户登录",font=("黑体",20))
label.place(x=135,y=30)

label_username = tk.Label(root,text="用户名：",font=("宋体",15))
label_username.place(x=50,y=100)
entry_username = tk.Entry(root,font=("宋体",15))
entry_username.place(x=150,y=100)
entry_username.insert(0,"请输入用户名")

label_password = tk.Label(root,text="密码：",font=("宋体",15))
label_password.place(x=50,y=150)
entry_password = tk.Entry(root,font=("宋体",15))
entry_password.place(x=150,y=150)
entry_password.insert(0,"请输入密码")
def login():
    print(entry_username.get())
    print(entry_password.get())

label_button = tk.Button(root,text="登录",font=("宋体",15))
label_button.place(x=150,y=200)
register_button = tk.Button(root,text="去注册",font=("宋体",15))
register_button.place(x=230,y=200)

root.mainloop()